﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="muudatused.aspx.cs" Inherits="Kohvik.WebForm7" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
    <asp:Panel ID="panel_muuda" runat="server">
    <br /><div class="muudaPealkiri"><asp:Label ID="kohvikuNimi" runat="server"></asp:Label></div>
    <br />

    <div class="kuup"><span style="font-size:14px; color:Black;">Vali kuupäev: </span><asp:TextBox ID="TB_kuup" runat="server"></asp:TextBox>
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
            TargetControlID="TB_kuup" PopupButtonID="IB_kalender" FirstDayOfWeek="Monday" 
            Format="yyyy-MM-dd" TodaysDateFormat="yyyy-MM-dd" OnClientDateSelectionChanged="dateSelectionChanged" CssClass="cal_Theme1"></asp:CalendarExtender>
        <asp:ImageButton runat="Server" ID="IB_kalender" ImageUrl="~/images/Calendar.png" AlternateText="Click here to display calendar" />
    </div>
    <br /><div class="muudaPealkiri">Muuda</div>
    
    <p style="font-size:16px; color:Green;"><asp:Label Text="Muudatused edukalt sisse viidud." runat="server" ID="muudatusedSuccess" /></p>
        <br />
        <asp:TextBox ID="tbKohvikuKirjeldus" runat="server" Height="75px" Width="354px" TextMode="MultiLine"></asp:TextBox>
        <br /><br />
        <asp:Button ID="btnSalvesta" runat="server" onclick="Button1_Click" Text="Muuda kirjeldus" />
        <br /><br />
        <br />
    <div style="border-bottom-width:2px;border-bottom-style:dotted;border-bottom-color:#ff9900;">
    <asp:PlaceHolder ID="PlaceHolder2" runat="server"></asp:PlaceHolder>
        <br />       
    </div>
    
    <br />
    
    <div class="muudaPealkiri">Sisesta</div><br />

    <div id='toidud'>
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
        Lisa <asp:TextBox ID="tb_toitudearv" runat="server" Columns="2" Text="1"></asp:TextBox> &nbsp;toitude lahtrit, igaühel 
        <asp:TextBox ID="tb_portsudearv" runat="server" Columns="2">1</asp:TextBox> &nbsp;portsu ja <asp:TextBox ID="tb_soodukatearv" runat="server" Text="1" Columns="2"></asp:TextBox>
        &nbsp;soodustust
        <asp:Button ID="lisatoit" runat="server" Text="GO!" 
            onclientclick="javascript:__doPostBack(&quot;lisatoit&quot;,&quot;0&quot;);" />
        <br />
    </div>
    <br />
    <p><asp:Button ID="Button1" runat="server" Text="Sisesta kaubad" BorderStyle="Solid" BorderWidth="1px" BorderColor="Highlight"
            onclientclick="javascript:__doPostBack(&quot;lisakaubad&quot;,&quot;&quot; + 0 + &quot;&quot;);" /></p><br />     
    </asp:Panel>
            
            <br />
            <asp:PlaceHolder ID="PH_sisestaUusKohvik" runat="server" Visible="false">
            <br />
            <div style="border-top-width:2px;border-top-style:dotted;border-top-color:#ff9900;"><br />
            <div class="muudaPealkiri">Sisesta uus kohvik</div><br /><br />
            <table>
                <tr>
                    <td>Nimetus</td>
                    <td><asp:TextBox ID="TB_nimetus" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Laiuskraad</td>
                    <td><asp:TextBox ID="TB_lat" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Pikkuskraad</td>
                    <td><asp:TextBox ID="TB_long" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Riik</td>
                    <td><asp:TextBox ID="TB_riik" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Maakond</td>
                    <td><asp:TextBox ID="TB_maakond" runat="server"></asp:TextBox></td>
                </tr>
                 <tr>
                    <td>LinnVald</td>
                    <td><asp:TextBox ID="TB_linnVald" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td>Indeks</td>
                    <td><asp:TextBox ID="TB_indeks" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td>Tänav</td>
                    <td><asp:TextBox ID="TB_tanav" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>MajaNr</td>
                    <td><asp:TextBox ID="TB_maja" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>Kirjeldus</td>
                    <td><asp:TextBox ID="TB_kirjeldus" runat="server"></asp:TextBox></td>
                </tr>                  
            </table>
            <br />
                <asp:Button ID="btn_sisestaUusKohvik" runat="server" Text="Sisesta" onclick="btnLisaUusKohvik_Click"/>
            </div>    
            <br />          
            </asp:PlaceHolder>
              
</asp:Content>